home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-3.98 / bfd.mips / configure < prev    next >
Encoding:
Text File  |  1991-08-23  |  19.3 KB  |  695 lines

  1. #!/bin/sh
  2. # Please do not edit this file.  It is generated automatically from
  3. # configure.in and a configure template.
  4. configdirs=
  5.  
  6. #!/bin/sh
  7.  
  8. # Configuration script template
  9. #   Copyright (C) 1988, 1990, 1991 Free Software Foundation, Inc.
  10.  
  11. #This file is part of GNU.
  12.  
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation; either version 2 of the License, or
  16. # (at your option) any later version.
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  24.  
  25. # $Id: configure,v 1.22 1991/07/20 01:22:30 rich Exp $
  26.  
  27. #
  28. # Shell script to create proper links to machine-dependent files in
  29. # preparation for compilation.
  30. #
  31. # If configure succeeds, it leaves its status in config.status.
  32. # If configure fails after disturbing the status quo, 
  33. #     config.status is removed.
  34. #
  35.  
  36. remove=rm
  37. hard_link=ln
  38. symbolic_link='ln -s'
  39.  
  40. #for Test
  41. #remove="echo rm"
  42. #hard_link="echo ln"
  43. #symbolic_link="echo ln -s"
  44.  
  45. progname=$0
  46.  
  47. # clear some things potentially inherited from environment.
  48. ansi=
  49. defaulttargets=
  50. destdir=
  51. fatal=
  52. hostsubdir=
  53. Makefile=Makefile
  54. Makefile_in=Makefile.in
  55. norecurse=
  56. removing=
  57. srcdir=
  58. srctrigger=
  59. target=
  60. targets=
  61. targetsubdir=
  62. template=
  63. verbose=
  64.  
  65. for arg in $*;
  66. do
  67.     case ${arg} in
  68.     -ansi | +ansi)
  69.         ansi=true
  70.         ;;
  71.     -destdir=* | +destdir=* | +destdi=* | +destd=* | +dest=* | +des=* | +de=* | +d=*)
  72.         destdir=`echo ${arg} | sed 's/[+-]d[a-z]*=//'`
  73.         ;;
  74.     -forcesubdirs | +forcesubdirs | +forcesubdir | +forcesubdi | +forcesubd \
  75.     | +forcesub | +forcesu | +forces | +force | +forc | +for | +fo | +f)
  76.         forcesubdirs=${arg}
  77.         ;;
  78.     -languages=* | +languages=* | +language=* | +languag=* \
  79.         | +langua=* | +langu=* | +lang=* | +lan=* | +la=* \
  80.         | +l=*)
  81.         languages="${languages} `echo ${arg} | sed 's/[+-]l[a-z]*=//'`"
  82.         ;;
  83.     -gas | +gas | +ga | +g)
  84.         gas=yes
  85.         ;;
  86.     -help | +h | +help)
  87.         fatal=true
  88.         ;;
  89.     -nfp | +nfp | +nf | +n)
  90.         nfp=yes
  91.         ;;
  92.     -norecurse | +norecurse)
  93.         norecurse=true
  94.         ;;
  95.     -rm | +rm)
  96.         removing=${arg}
  97.         ;;
  98. #    -srcdir=* | +srcdir=* | +srcdi=* | +srcd=* | +src=* | +sr=* | +s=*)
  99. #        srcdir=`echo ${arg} | sed 's/[+-]s[a-z]*=//'`
  100. #        ;;
  101.     -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=* | +t=*)
  102.         if [ -n "${targets}" ] ; then
  103.             forcesubdirs="+forcesubdirs"
  104.         fi
  105.  
  106.         newtargets="${targets} `echo ${arg} | sed 's/[+-]t[a-z]*=//'`"
  107.         targets="${newtargets}"
  108.         ;;
  109.     -template=* | +template=*)
  110.         template=`echo ${arg} | sed 's/[+-]template=//'`
  111.         ;;
  112.     +verbose | +verbos | +verbo | +verb | +ver | +ve | +v)
  113.         verbose=${arg}
  114.         ;;
  115.     -* | +*)
  116.         (echo ;
  117.         echo "Unrecognized option: \"${arg}\"". ;
  118.         echo) 1>&2
  119.         fatal=true
  120.         ;;
  121.     *)
  122.         if [ -n "${hosts}" ] ; then
  123.             forcesubdirs="+forcesubdirs"
  124.         fi
  125.  
  126.         newhosts="${hosts} ${arg}"
  127.         hosts=${newhosts}
  128.         ;;
  129.     esac
  130. done
  131.  
  132. if [ -n "${verbose}" ] ; then
  133.     echo `pwd`/configure $*
  134.     echo targets=\"${targets}\"
  135. fi
  136.  
  137. # process host and target only if not rebuilding configure itself or removing.
  138. if [ -z "${template}" -a -z "${removing}" -a -z "${fatal}" ] ; then
  139.     # Complain if an arg is missing
  140.     if [ -z "${hosts}" ] ; then
  141.         (echo ;
  142.         echo "configure: No HOST specified." ;
  143.         echo) 2>&1
  144.         fatal=true
  145.     fi
  146. fi
  147.  
  148. if [ -n "${fatal}" -o "${hosts}" = "help" ] ; then
  149.     (echo "Usage: configure HOST" ;
  150.     echo ;
  151.     echo "Options: [defaults in brackets]" ;
  152.     echo " +ansi        configure w/ANSI library. [no ansi lib]" ;
  153.     echo " +destdir=MYDIR    configure for installation into MYDIR. [/usr/local]" ;
  154.     echo " +forcesubdirs    configure in subdirectories.  [in source directories]" ;
  155.     echo " +lang=LANG    configure to build LANG. [gcc]" ;
  156.     echo " +help        print this message. [normal config]" ;
  157.     echo " +gas        configure the compilers for use with gas. [native as]" ;
  158.     echo " +nfp        configure the compilers default to soft floating point. [hard float]" ;
  159.     echo " +norecurse    configure this directory only. [recurse]" ;
  160.     echo " +rm        remove this configuration. [build a configuration]" ;
  161.     echo " +target=TARGET    configure for TARGET.  [TARGET = HOST]" ;
  162.     echo " +template=TEM    rebuild configure using TEM. [normal config]" ;
  163.     echo ;
  164.     echo "Where HOST and TARGET are something like \"vax\", \"sun3\", \"encore\", etc." ;
  165.     echo "Asking for more than one \"+target\" implies \"+forcesubdirs\".  Any other" ;
  166.     echo "options given will apply to all targets.") 1>&2
  167.  
  168.     if [ -r config.status ] ; then
  169.         cat config.status
  170.     fi
  171.  
  172.     exit 1
  173. fi
  174.  
  175. #### configure.in common parts come in here.
  176. # This file is a shell script that supplies the information necessary
  177. # to tailor a template configure script into the configure script
  178. # appropriate for this directory.  For more information, check any
  179. # existing configure script.
  180.  
  181. srctrigger=libbfd.c
  182. srcname="bfd"
  183.  
  184. ## end of common part.
  185.  
  186. # are we rebuilding config itself?
  187. if [ -n "${template}" ] ; then
  188.     if [ ! -r ${template} ] ; then
  189.         echo "Can't find template ${template}."
  190.         exit 1
  191.     fi
  192.  
  193. # prep the template
  194.     sed -e '/^#### configure.in common parts come in here.$/,/^## end of common part.$/c\
  195. #### configure.in common parts come in here.\
  196. ## end of common part.' \
  197.     -e '/^#### configure.in per-host parts come in here.$/,/^## end of per-host part.$/c\
  198. #### configure.in per-host parts come in here.\
  199. ## end of per-host part.' \
  200.     -e '/^#### configure.in per-target parts come in here.$/,/^## end of per-target part.$/c\
  201. #### configure.in per-target parts come in here.\
  202. ## end of per-target part.' \
  203.     -e '/^#### configure.in post-target parts come in here.$/,/^## end of post-target part.$/c\
  204. #### configure.in post-target parts come in here.\
  205. ## end of post-target part.' \
  206.     < ${template} > template.new
  207.  
  208.     if [ -r configure.in ] ; then
  209.         if [ -z "`grep '^# per\-host:' configure.in`" ] ; then
  210.             echo `pwd`/configure.in has no "per-host:" line.
  211.             exit 1
  212.         fi
  213.  
  214.         if [ -z "`grep '^# per\-target:' configure.in`" ] ; then
  215.             echo `pwd`/configure.in has no "per-target:" line.
  216.             exit 1
  217.         fi
  218.  
  219.         # split configure.in into common, per-host, per-target,
  220.         # and post-target parts.  Post-target is optional.
  221.         sed -e '/^# per\-host:/,$d' configure.in > configure.com
  222.         sed -e '1,/^# per\-host:/d' -e '/^# per\-target:/,$d' configure.in > configure.hst
  223.         if grep -s '^# post-target:' configure.in ; then
  224.           sed -e '1,/^# per\-target:/d' -e '/^# post\-target:/,$d' configure.in > configure.tgt
  225.           sed -e '1,/^# post\-target:/d' configure.in > configure.pos
  226.         else
  227.           sed -e '1,/^# per\-target:/d' configure.in > configure.tgt
  228.           echo >configure.pos
  229.         fi
  230.  
  231.         # and insert them
  232.         sed -e '/^#### configure.in common parts come in here.$/  r configure.com' \
  233.             -e '/^#### configure.in per\-host parts come in here.$/  r configure.hst' \
  234.             -e '/^#### configure.in per\-target parts come in here.$/  r configure.tgt' \
  235.             -e '/^#### configure.in post\-target parts come in here.$/  r configure.pos' \
  236.             template.new > configure.new
  237.  
  238.         rm -f configure.com configure.tgt configure.hst configure.pos
  239.     else
  240.         echo Warning: no configure.in in `pwd`
  241.         cat ${template} >> configure
  242.     fi
  243.  
  244.     chmod a+x configure.new
  245.     rm template.new
  246. #    mv configure configure.old
  247.     mv configure.new configure
  248.     echo Rebuilt configure in `pwd`
  249.  
  250.     if [ -z "${norecurse}" ] ; then
  251.         # If template is relative path, make it absolute for recursing.
  252.         if echo "${template}" | grep -s '^/' ; then
  253.            true
  254.         else
  255.            template=`pwd`/${template}
  256.         fi
  257.  
  258.         while [ -n "${configdirs}" ] ; do
  259.             # set configdir to car of configdirs, configdirs to cdr of configdirs
  260.             set ${configdirs}; configdir=$1; shift; configdirs=$*
  261.  
  262.             if [ "`echo ${configdir}.*`" != "${configdir}.*" ] ; then
  263.                 targetspecificdirs=${configdir}.*
  264.             else
  265.                 targetspecificdirs=
  266.             fi
  267.  
  268.             for i in ${configdir} ${targetspecificdirs} ; do
  269.                 if [ -d $i ] ; then
  270.                     if [ -r $i/configure ] ; then
  271.                         (cd $i ;
  272.                             ./configure +template=${template} ${verbose})
  273.                     else
  274.                         echo No configure script in `pwd`/$i
  275.                     fi
  276.                 else
  277.                     echo Warning: directory $i is missing.
  278.                 fi
  279.             done
  280.         done
  281.     fi
  282.  
  283.     exit 0
  284. fi
  285.  
  286. # some sanity checks on configure.in
  287. if [ -z "${srctrigger}" ] ; then
  288.     echo srctrigger not set in configure.in. `pwd` not configured.
  289.     exit 1
  290. fi
  291.  
  292. for host in ${hosts} ; do
  293.     # Default other arg
  294.     if [ -z "${targets}" -o -n "${defaulttargets}" ] ; then
  295.         targets=${host}
  296.         defaulttargets=true
  297.     fi
  298.  
  299.     host_makefile_frag=config/hmake-${host}
  300.  
  301. #### configure.in per-host parts come in here.
  302.  
  303. ## end of per-host part.
  304.  
  305.  
  306.     for target in ${targets} ; do
  307.  
  308.         if [ -n "${verbose}" ] ; then
  309.             echo "    target=\"${target}\""
  310.         fi
  311.  
  312.         target_makefile_frag=config/tmake-${target}
  313.  
  314. #### configure.in per-target parts come in here.
  315.  
  316. files=
  317. links=
  318. ## end of per-target part.
  319.  
  320.         # Temporarily, we support only direct subdir builds.
  321.         hostsubdir=Host-${host}
  322.         targetsubdir=Target-${target}
  323.  
  324.         if [ -n "${removing}" ] ; then
  325.             if [ -n "${forcesubdirs}" ] ; then
  326.                 if [ -d "${hostsubdir}" ] ; then
  327.                     rm -rf ${hostsubdir}/${targetsubdir}
  328.  
  329.                     if [ -z "`(ls ${hostsubdir}) 2>&1 | grep Target-`" ] ; then
  330.                         rm -rf ${hostsubdir}
  331.                     fi
  332.                 else
  333.                     echo Warning: no `pwd`/${hostsubdir} to remove.
  334.                 fi
  335.             else
  336.                 rm -f ${Makefile} config.status ${links}
  337.             fi
  338.         else
  339.             if [ -n "${forcesubdirs}" ] ; then
  340.                 # check for existing status before allowing forced subdirs.
  341.                 if [ -f ${Makefile} ] ; then
  342.                     echo "${Makefile} already exists in source directory.  `pwd` not configured."
  343.                     exit 1
  344.                 fi
  345.  
  346.                 if [ ! -d ${hostsubdir} ] ; then mkdir ${hostsubdir} ; fi
  347.                 cd ${hostsubdir}
  348.  
  349.                 if [ ! -d ${targetsubdir} ] ; then mkdir ${targetsubdir} ; fi
  350.                 cd ${targetsubdir}
  351.  
  352.                 srcdir=../..
  353.             else
  354.                 # if not subdir builds, then make sure none exist.
  355.                 if [ -n "`(ls .) 2>&1 | grep Host-`" ] ; then
  356.                     echo "Configured subdirs exist.  `pwd` not configured."
  357.                     exit 1
  358.                 fi
  359.             fi
  360.  
  361.             # Find the source files, if location was not specified.
  362.             if [ -z "${srcdir}" ] ; then
  363.                 srcdirdefaulted=1
  364.                 srcdir=.
  365.                 if [ -n "${srctrigger}" -a ! -r ${srctrigger} ] ; then
  366.                     srcdir=..
  367.                 fi
  368.             fi
  369.  
  370.             if [ -n "${srctrigger}" -a ! -r ${srcdir}/${srctrigger} ] ; then
  371.                 if [ -z "${srcdirdefaulted}" ] ; then
  372.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/${srcdir}" 1>&2
  373.                 else
  374.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/. or `pwd`/.." 1>&2
  375.                 fi
  376.  
  377.                 echo \(At least ${srctrigger} is missing.\) 1>&2
  378.                 exit 1
  379.             fi
  380.  
  381.             # Set up the list of links to be made.
  382.             # ${links} is the list of link names, and ${files} is the list of names to link to.
  383.  
  384.             # Make the links.
  385.             while [ -n "${files}" ] ; do
  386.                 # set file to car of files, files to cdr of files
  387.                 set ${files}; file=$1; shift; files=$*
  388.                 set ${links}; link=$1; shift; links=$*
  389.  
  390.                 if [ ! -r ${srcdir}/${file} ] ; then
  391.                     echo "${progname}: cannot create a link \"${link}\"," 1>&2
  392.                     echo "since the file \"${file}\" does not exist." 1>&2
  393.                     exit 1
  394.                 fi
  395.  
  396.                 ${remove} -f ${link}
  397.                 rm -f config.status
  398.                 # Make a symlink if possible, otherwise try a hard link
  399.                 ${symbolic_link} ${srcdir}/${file} ${link} 2>/dev/null || ${hard_link} ${srcdir}/${file} ${link}
  400.  
  401.                 if [ ! -r ${link} ] ; then
  402.                     echo "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2
  403.                     exit 1
  404.                 fi
  405.                 echo "Linked \"${link}\" to \"${srcdir}/${file}\"."
  406.             done
  407.  
  408.             # Create a .gdbinit file which runs the one in srcdir
  409.             # and tells GDB to look there for source files.
  410.  
  411.             case ${srcdir} in
  412.             .)
  413.                 ;;
  414.             *)
  415.                 echo "dir ." > .gdbinit
  416.                 echo "dir ${srcdir}" >> .gdbinit
  417.                 echo "source ${srcdir}/.gdbinit" >> .gdbinit
  418.                 ;;
  419.             esac
  420.  
  421.             # Install a makefile, and make it set VPATH
  422.             # if necessary so that the sources are found.
  423.             # Also change its value of srcdir.
  424.  
  425.         # FIXME-someday: This business of always writing to .tem and mv back
  426.         # is so that I don't screw things up while developing.  Once this
  427.         # template is stable, these should be optimized. xoxorich.
  428.  
  429.             # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
  430.             if [ "${host}" != "${target}" ] ; then
  431.                 echo "CROSS=-DCROSS_COMPILE" > ${Makefile}
  432.                 echo "ALL=start.encap" >> ${Makefile}
  433.             else
  434.                 echo "ALL=all.internal" > ${Makefile}
  435.             fi
  436.  
  437.             # set target, host, VPATH
  438.             echo "host = ${host}" >> ${Makefile}
  439.             echo "target = ${target}" >> ${Makefile}
  440.  
  441.             if [ -n "${forcesubdirs}" ] ; then
  442.                 echo "subdir = /${hostsubdir}/${targetsubdir}" >> ${Makefile}
  443.             else
  444.                 echo "subdir =" >> ${Makefile}
  445.             fi
  446.  
  447.         #    echo "workdir = `pwd`" >> ${Makefile}
  448.             echo "VPATH = ${srcdir}" >> ${Makefile}
  449.  
  450.             # add "Makefile.in" (or whatever it's called)
  451.             cat ${srcdir}/${Makefile_in} >> ${Makefile}
  452.  
  453.             # Conditionalize the makefile for this host.
  454.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  455.                 sed -e "/^####/  r ${srcdir}/${host_makefile_frag}" ${Makefile} > Makefile.tem
  456.                 mv Makefile.tem ${Makefile}
  457.             fi
  458.  
  459.             # Conditionalize the makefile for this target.
  460.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  461.                 sed -e "/^####/  r ${srcdir}/${target_makefile_frag}" ${Makefile} > Makefile.tem
  462.                 mv Makefile.tem ${Makefile}
  463.             fi
  464.  
  465.             # set srcdir
  466.             sed "s@^srcdir = \.@srcdir = ${srcdir}@" ${Makefile} > Makefile.tem
  467.             mv Makefile.tem ${Makefile}
  468.  
  469.             # set destdir
  470.             if [ -n "${destdir}" ] ; then
  471.                 sed "s:^destdir =.*$:destdir = ${destdir}:" ${Makefile} > Makefile.tem
  472.                 mv Makefile.tem ${Makefile}
  473.             fi
  474.  
  475.             # reset SUBDIRS
  476.             sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem
  477.             mv Makefile.tem ${Makefile}
  478.  
  479.             # reset NONSUBDIRS
  480.             sed "s:^NONSUBDIRS =.*$:NONSUBDIRS = ${noconfigdirs}:" ${Makefile} > Makefile.tem
  481.             mv Makefile.tem ${Makefile}
  482.  
  483.             using=
  484.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  485.                 using=" using \"${host_makefile_frag}\""
  486.             fi
  487.  
  488.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  489.                 if [ -z "${using}" ] ; then
  490.                     andusing=" using \"${target_makefile_frag}\""
  491.                 else
  492.                     andusing="${using} and \"${target_makefile_frag}\""
  493.                 fi
  494.             else
  495.                 andusing=${using}
  496.             fi
  497.  
  498.             echo "Created \"${Makefile}\"" in `pwd`${andusing}.
  499.  
  500. #### configure.in post-target parts come in here.
  501.  
  502. ## end of post-target part.
  503.  
  504.             if [ "${host}" = "${target}" ] ; then
  505.                 echo "Links are now set up for use with a ${target}." \
  506.                     > config.status
  507.         #            | tee ${srcdir}/config.status
  508.             else
  509.                 echo "Links are now set up for host ${host} and target ${target}." \
  510.                     > config.status
  511.         #            | tee ${srcdir}/config.status
  512.             fi
  513.  
  514.             originaldir=`pwd`
  515.             cd ${srcdir}
  516.         fi
  517.     done # for each target
  518.  
  519. #    # Now build a Makefile for this host.
  520. #    if [ -n "${forcesubdirs}" ] ; then
  521. #        cd ${hostsubdir}
  522. #        cat > GNUmakefile << E!O!F
  523. ## Makefile generated by configure for host ${host}.
  524. #
  525. #%:
  526. #    for i in ${targets} ; do \
  527. #        $(MAKE) -C Target-\$i \$@
  528. #
  529. #all clean stage1 stage2 stage3 stage4etags tags TAGS
  530. #E!O!F
  531. #    fi
  532. done # for each host
  533.  
  534. # If there are subdirectories, then recurse. 
  535.  
  536. if [ -n "${norecurse}" -o -z "${configdirs}" ] ; then exit 0 ; fi
  537.  
  538. # configdirs is not null
  539. for configdir in ${configdirs} ; do
  540.     echo Configuring ${configdir}...
  541.     specifics=
  542.     commons=
  543.  
  544.     if [ -n "${defaulttargets}" ] ; then
  545.         for host in ${hosts} ; do
  546.             if [ -d ${configdir}.${host} ] ; then
  547.                 newspecifics="${specifics} ${host}"
  548.                 specifics=${newspecifics}
  549.             else
  550.                 newcommons="${commons} ${host}"
  551.                 commons=${newcommons}
  552.             fi # if target specific
  553.         done # for each host
  554.  
  555.         if [ -n "${commons}" ] ; then
  556.             if [ -d ${configdir} ] ; then
  557.                 (cd ${configdir} ;
  558.                     ./configure ${commons} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  559.                     | sed 's/^/    /'
  560.             else
  561.                 echo Warning: directory \"${configdir}\" is missing.
  562.             fi
  563.         fi # if any common hosts
  564.  
  565.         if [ -n "${specifics}" ] ; then
  566.             for host in ${specifics} ; do
  567.                 echo Configuring target specific directory ${configdir}.${host}...
  568.                 (cd ${configdir}.${host} ;
  569.                     ./configure ${host} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  570.                     | sed 's/^/    /'
  571.             done # for host in specifics
  572.         fi # if there are any specifics
  573.     else
  574.  
  575.         for target in ${targets} ; do
  576.             if [ -d ${configdir}.${target} ] ; then
  577.                 newspecifics="${specifics} ${target}"
  578.                 specifics=${newspecifics}
  579.             else
  580.                 newcommons="${commons} +target=${target}"
  581.                 commons=${newcommons}
  582.             fi
  583.  
  584.         done # check for target specific dir override
  585.  
  586.         if [ -n "${verbose}" ] ; then
  587.             echo "    "commons=\"${commons}\"
  588.             echo "    "specifics=\"${specifics}\"
  589.         fi # if verbose
  590.  
  591.         if [ -n "${commons}" ] ; then
  592.             if [ -d ${configdir} ] ; then
  593.                 (cd ${configdir} ;
  594.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  595.                         ${commons} +destdir=${destdir}) \
  596.                     | sed 's/^/    /'
  597.             else
  598.                 echo Warning: directory \"${configdir}\" is missing.
  599.             fi
  600.         fi # if any commons
  601.  
  602.         if [ -n "${specifics}" ] ; then
  603.             for target in ${specifics} ; do
  604.                 echo Configuring target specific directory ${configdir}.${target}...
  605.                 (cd ${configdir}.${target} ;
  606.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  607.                         "+target=${target}" +destdir=${destdir}) \
  608.                     | sed 's/^/    /'
  609.             done
  610.         fi # if any specifics
  611.     fi # not default targets
  612. done
  613.  
  614. exit 0
  615.  
  616. #
  617. # $Log: configure,v $
  618. # Revision 1.22  1991/07/20  01:22:30  rich
  619. # propogate gdb changes and destdir fix
  620. #
  621. # Revision 1.21  1991/07/20  00:55:20  gnu
  622. # Roll in new configure that handles GDB.  Make sure that the "configure"
  623. # that is checked-in reflects the latest "configure.in", which includes gdb.
  624. #
  625. # Revision 1.9  1991/07/06  04:35:51  gnu
  626. # Fix bug in configure when iterating targets.
  627. # Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found
  628. # in either spot.
  629. #
  630. # Revision 1.8  1991/07/05  00:04:58  gnu
  631. # Thu Jul  4 14:47:06 1991  John Gilmore  (gnu at cygint.cygnus.com)
  632. #
  633. #         * configure.in, Makefile.in:  Avoid rebuilding "depend" as much.
  634. #         Avoid declaring Makefile dependencies, because GNU Make stupidly
  635. #         tries to update it if we do.
  636. #
  637. #         * coffread.c:  Revise for minor changes to bfd internal coff
  638. #         indexes.
  639. #
  640. #         * configure:  If -template= is given a relative path, make it
  641. #         absolute before recurring in subdirectories.
  642. #
  643. # Revision 1.7  1991/07/04  15:59:46  gnu
  644. # Make gdb work with configure.  Only thing that doesn't work is the -list
  645. # option (as far as I know).
  646. #
  647. # Revision 1.6  1991/06/04  07:28:16  gnu
  648. # Change GDB over to GNU General Public License version 2.
  649. #
  650. # Revision 1.5  1991/05/19  07:26:54  rich
  651. # configure changes and -opcode.h movement.
  652. #
  653. # Revision 1.4  1991/05/19  00:16:45  rich
  654. # Configure for gdb.
  655. #
  656. # Revision 1.10  1991/05/04  00:58:38  rich
  657. # Fix program name bug.
  658. #
  659. # Revision 1.9  1991/05/03  19:14:18  rich
  660. # Changed getopt to libiberty, commented out an aborted attempt at host
  661. # level Makefiles because it caused errors on +rm, add a warning for
  662. # directories expected to be removed on +rm but that don't exist.
  663. #
  664. # Revision 1.8  1991/04/24  16:50:59  rich
  665. # Three staging checkpoint.
  666. #
  667. # Revision 1.7  1991/04/17  01:34:47  rich
  668. # Added getopt for binutils, fixed problem with host dependancies in
  669. # configure.template.
  670. #
  671. # Revision 1.6  1991/04/16  00:18:44  rich
  672. # Now handles multiple hosts and targets.
  673. #
  674. # Revision 1.5  1991/04/15  23:43:44  rich
  675. # Now handles multiple hosts and targets.
  676. #
  677. # Revision 1.4  1991/04/13  02:11:03  rich
  678. # Config cut 3.  We now almost install a29k.
  679. #
  680. # Revision 1.3  1991/04/11  02:41:54  rich
  681. # Cut 2 config.  Subdirs.
  682. #
  683. #
  684. #
  685.  
  686. #
  687. # Local Variables:
  688. # fill-column: 131
  689. # End:
  690. #
  691.  
  692. # end of configure.template
  693.